package com.swinginwind.core.print;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


public class PrintTableVO {

	private List<PrintTableItemConfig> configList;

	@SuppressWarnings("rawtypes")
	private List<Map> dataList;

	private String printWay = "table";

	public void addConfig(String displayName, String field, int width, String padding)
	{
		if(configList == null)
			configList = new ArrayList<PrintTableItemConfig>();
		configList.add(new PrintTableItemConfig(displayName, field, width, padding));
	}

	public List<PrintTableItemConfig> getConfigList() {
		return configList;
	}

	public void setConfigList(List<PrintTableItemConfig> configList) {
		this.configList = configList;
	}

	@SuppressWarnings("rawtypes")
	public List<Map> getDataList() {
		return dataList;
	}

	@SuppressWarnings("rawtypes")
	public void setDataList(List<Map> dataList) {
		this.dataList = dataList;
	}

	public String getPrintWay() {
		return printWay;
	}

	public void setPrintWay(String printWay) {
		this.printWay = printWay;
	}

}